package com.byxy.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.byxy.dao.SupplierDao;
import com.byxy.entity.Supplier;
import com.byxy.service.SupplierService;
@Repository
public class SupplierServiceImpl implements SupplierService {
	@Resource
	private SupplierDao supplierDao;

	@Override
	public void add(Supplier s) {
		supplierDao.add(s);
		
	}

	@Override
	public void delet(Supplier s) {
		supplierDao.delete(s);
		
	}

	@Override
	public void update(Supplier s) {
		supplierDao.update(s);
		
	}

	@Override
	public List<Supplier> find() {
		
		return supplierDao.find();
	}

	@Override
	public List<Supplier> find(int pos, int rows) {
		
		return supplierDao.find(pos, rows);
	}

	@Override
	public Supplier get(String id) {
		
		return supplierDao.get(id);
	}

	@Override
	public long count() {
		
		return supplierDao.count();
	}
	
}
